# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=odio-edit
pkgver=24.10.1
pkgrel=0
pkgdesc="Lightweight audio wave editor"
url="https://tari.in/www/software/odio-edit/"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-lang"
depends="
	dconf
	gst-libav
	gst-plugins-bad
	gst-plugins-good
	gst-plugins-ugly
	"
makedepends="
	cmake
	cmake-extras
	gettext-dev
	gst-plugins-base-dev
	gtk+3.0-dev
	intltool
	libodiosacd-dev
	"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/tari01/odio-edit/archive/refs/tags/$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
db33a6a2e510ff7d6697c4828756e689d34ea3421e08eed5b3376d9a14beeac16e34f3d6eae19cbacdd05ea1283cc6907937f682edb850e9da18eb7f12763b4a  odio-edit-24.10.1.tar.gz
"
